$OpenBSD: patch-src_video_cpp,v 1.5 2017/03/06 08:53:56 dcoppa Exp $
--- src/video.cpp.orig	Mon Dec 21 13:41:36 2015
+++ src/video.cpp	Mon Mar  6 09:43:43 2017
@@ -328,7 +328,11 @@ void Video::scrapeWebPage(const QByteArray &bytes) {
     if (jsPlayerRe.indexIn(html) != -1) {
         QString jsPlayerUrl = jsPlayerRe.cap(1);
         jsPlayerUrl.remove('\\');
-        jsPlayerUrl = "http:" + jsPlayerUrl;
+        if (jsPlayerUrl.startsWith("//")) {
+            jsPlayerUrl = "https:" + jsPlayerUrl;
+        } else if (jsPlayerUrl.startsWith("/")) {
+            jsPlayerUrl = "https://youtube.com" + jsPlayerUrl;
+        }
         // qDebug() << "jsPlayerUrl" << jsPlayerUrl;
         /*
                     QRegExp jsPlayerIdRe("-(.+)\\.js");
